package com.wxw.gulidemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wxw.gulidemo.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wxw.gulidemo.entity.vo.CourseForm;
import com.wxw.gulidemo.entity.vo.CoursePublishVo;
import com.wxw.gulidemo.entity.vo.CourseQuery;
import com.wxw.gulidemo.entity.vo.frontVo.CourseFrontVo;
import com.wxw.gulidemo.entity.vo.frontVo.CourseWebVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xinxinzi
 * @since 2022-06-01
 */
public interface IEduCourseService extends IService<EduCourse> {

    String addCourseInfo(CourseForm courseForm);

    CourseForm getCourseInfo(String courseId);

    void updateCourseInfo(CourseForm courseInfoForm);

    CoursePublishVo getPublishCourseInfo(String courseId);

    void pageQuery(Page<EduCourse> coursePage, CourseQuery courseQuery);

    boolean removeCourse(String id);

    Map<String, Object> getCourseFrontPageList(Page<EduCourse> coursePage, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
